# ================================ # Enable Battery Energy Saver # ================================ $regPath = "HKLM:\SOFTWARE\Policies\Microsoft\Power\EnergySaver" if (-not (Test-Path $regPath)) { New-Item -Path $regPath -Force | Out-Null } Set-ItemProperty -Path $regPath -Name "EnableEnergySaver" -Type DWord -Value 1 -Force